The Metaball object

This metaball gives access to generic data from all metaballs in Blender.

Method Summary

a list of 24 floats(8 points, 3 coordinates)

getBbox()

Retreives the bounding box of a metaball object

a list of 3 floats

getLoc()

Retreives the location of a metaball object

float

getMetadata(name, num)

Retrieves the metadata of a metaball object.

float

getMetalen(pos)

Retreives the len parameter of a metaelem object

float

getMetas(pos)

Retreives the s parameter of a metaelem object

int

getMetatype(pos)

Retreives the type of a metaelem object

float

getMetax(pos)

Retreives the x parameter of a metaelem object

float

getMetay(pos)

Retreives the y parameter of a metaelem object

float

getMetaz(pos)

Retreives the z parameter of a metaelem object

string

getName()

Retreives the name of a metaball object

int

getNMetaElems()

Retreives the number of metaelems (elementary spheres or cylinders) of a metaball object

float

getRendersize()

Retreives the rendersize of a metaball object

a list of 3 floats

getRot()

Retreives the rotation of a metaball object

a list of 3 floats

getSize()

Retreives the size of a metaball object

float

getThresh()

Retreives the threshold of a metaball object

float

getWiresize()

Retreives the wiresize of a metaball object

PyNone

setLoc(newloc)

Sets the location of a metaball object

PyNone

setMetadata(name, num, val)

The setMetadata function has the same semantics as getMetadata, except that it needs the parameter value, and always returns PyNone.

PyNone

setMetalen(pos, newlen)

Sets the len parameter of a metaelem object

PyNone

setMetas(pos, news)

Sets the s parameter of a metaelem object

PyNone

setMetatype(pos, newtype)

Sets the type of a metaelem object

PyNone

setMetax(pos, newx)

Sets the x parameter of a metaelem object

PyNone

setMetay(pos, newy)

Sets the y parameter of a metaelem object

PyNone

setMetaz(pos, newz)

Sets the z parameter of a metaelem object

PyNone

setName(name)

Sets the name of a metaball object

PyNone

setRendersize(newsize)

Sets the render size of a metaball object

PyNone

setRot(newrot)

Sets the rotation of a metaball object

PyNone

setSize(newsize)

Sets the size of a metaball object

PyNone

setThresh(threshold)

Sets the threshold of a metaball object

PyNone

setWiresize(newsize)

Sets the wire size of a metaball object

Class Variable Summary

á

loc - The location of the metaball.

á

name - The name of the metaball.

á

rot - The rotation of the metaball.

á

size - The size of the metaball.

Method Details

getBbox()

Retreives the bounding box of a metaball object

Returns:

the bounding box of a metaball object

áááááááááá (type=a list of 24 floats(8 points, 3 coordinates))

getLoc()

Retreives the location of a metaball object

Returns:

locationof a metaball object

áááááááááá (type=a list of 3 floats)

getMetadata(name, num)

Retrieves the metadata of a metaball object. A metaball is composed of one or several elementary objects, spheres or cylinders, which interact to create the smooth surface everybody knows. The get/set Metadata functions allow users to read/write the parameters of these elementary objects, called metaelements.

Parameters:

name - the name of the property to be read. The accepted values are :"type", "x", "y", "z", "expx", "expy", "expz", "rad", "rad2", "s", "len".

áááááááááá (type=string)

num - the position of the metaelem to be accessed.

áááááááááá (type=int)

Returns:

the metaelement parameter value, generally a float, except for the parameter "type", which returns an int.

áááááááááá (type=float)

getMetalen(pos)

Retreives the len parameter of a metaelem object

Parameters:

pos

áááááááááá (type=int @param : the position of the metaelement)

Returns:

len parameter of the metaelem object

áááááááááá (type=float)

getMetas(pos)

Retreives the s parameter of a metaelem object

Parameters:

pos

áááááááááá (type=int @param : the position of the metaelement)

Returns:

s parameter of the metaelem object

áááááááááá (type=float)

getMetatype(pos)

Retreives the type of a metaelem object

Parameters:

pos

áááááááááá (type=int @param : the position of the metaelement)

Returns:

type of the metaelem object

áááááááááá (type=int)

getMetax(pos)

Retreives the x parameter of a metaelem object

Parameters:

pos

áááááááááá (type=int @param : the position of the metaelement)

Returns:

x parameter of the metaelem object

áááááááááá (type=float)

getMetay(pos)

Retreives the y parameter of a metaelem object

Parameters:

pos

áááááááááá (type=int @param : the position of the metaelement)

Returns:

y parameter of the metaelem object

áááááááááá (type=float)

getMetaz(pos)

Retreives the z parameter of a metaelem object

Parameters:

pos

áááááááááá (type=int @param : the position of the metaelement)

Returns:

z parameter of the metaelem object

áááááááááá (type=float)

getName()

Retreives the name of a metaball object

Returns:

the name of a metaball object

áááááááááá (type=string)

getNMetaElems()

Retreives the number of metaelems (elementary spheres or cylinders) of a metaball object

Returns:

number of metaelems of a metaball object

áááááááááá (type=int)

getRendersize()

Retreives the rendersize of a metaball object

Returns:

render size a metaball object

áááááááááá (type=float)

getRot()

Retreives the rotation of a metaball object

Returns:

rotationof a metaball object

áááááááááá (type=a list of 3 floats)

getSize()

Retreives the size of a metaball object

Returns:

size a metaball object

áááááááááá (type=a list of 3 floats)

getThresh()

Retreives the threshold of a metaball object

Returns:

threshold of the metaball object

áááááááááá (type=float)

getWiresize()

Retreives the wiresize of a metaball object

Returns:

wire size a metaball object

áááááááááá (type=float)

setLoc(newloc)

Sets the location of a metaball object

Parameters:

newloc - the new location

áááááááááá (type=list of 3 floats)

Returns:

PyNone

áááááááááá (type=PyNone)

setMetadata(name, num, val)

The setMetadata function has the same semantics as getMetadata, except that it needs the parameter value, and always returns PyNone.

Parameters:

name - the name of the property to be read. The accepted values are :"type", "x", "y", "z", "expx", "expy", "expz", "rad", "rad2", "s", "len".

áááááááááá (type=string)

num - the position of the metaelem to be accessed.

áááááááááá (type=int)

val - the new value of the parameter.

áááááááááá (type=float, except if name is "type".)

Returns:

PyNone

áááááááááá (type=PyNone)

setMetalen(pos, newlen)

Sets the len parameter of a metaelem object

Parameters:

pos

áááááááááá (type=int @param : the position of the metaelement)

newlen - the new x parameter value

áááááááááá (type=float)

Returns:

PyNone

áááááááááá (type=PyNone)

setMetas(pos, news)

Sets the s parameter of a metaelem object

Parameters:

pos

áááááááááá (type=int @param : the position of the metaelement)

news - the new x parameter value

áááááááááá (type=float)

Returns:

PyNone

áááááááááá (type=PyNone)

setMetatype(pos, newtype)

Sets the type of a metaelem object

Parameters:

pos

áááááááááá (type=int @param : the position of the metaelement)

newtype - the new type

áááááááááá (type=int)

Returns:

PyNone

áááááááááá (type=PyNone)

setMetax(pos, newx)

Sets the x parameter of a metaelem object

Parameters:

pos

áááááááááá (type=int @param : the position of the metaelement)

newx - the new x parameter value

áááááááááá (type=float)

Returns:

PyNone

áááááááááá (type=PyNone)

setMetay(pos, newy)

Sets the y parameter of a metaelem object

Parameters:

pos

áááááááááá (type=int @param : the position of the metaelement)

newy - the new y parameter value

áááááááááá (type=float)

Returns:

PyNone

áááááááááá (type=PyNone)

setMetaz(pos, newz)

Sets the z parameter of a metaelem object

Parameters:

pos

áááááááááá (type=int @param : the position of the metaelement)

newz - the new z parameter value

áááááááááá (type=float)

Returns:

PyNone

áááááááááá (type=PyNone)

setName(name)

Sets the name of a metaball object

Parameters:

name

áááááááááá (type=string @param name : the new name)

Returns:

PyNone

áááááááááá (type=PyNone)

setRendersize(newsize)

Sets the render size of a metaball object

Parameters:

newsize - the new size

áááááááááá (type=float)

Returns:

PyNone

áááááááááá (type=PyNone)

setRot(newrot)

Sets the rotation of a metaball object

Parameters:

newrot - the new rotation

áááááááááá (type=list of 3 floats)

Returns:

PyNone

áááááááááá (type=PyNone)

setSize(newsize)

Sets the size of a metaball object

Parameters:

newsize - the new size

áááááááááá (type=list of 3 floats)

Returns:

PyNone

áááááááááá (type=PyNone)

setThresh(threshold)

Sets the threshold of a metaball object

Parameters:

threshold - the new size

áááááááááá (type=float)

Returns:

PyNone

áááááááááá (type=PyNone)

setWiresize(newsize)

Sets the wire size of a metaball object

Parameters:

newsize - the new size

áááááááááá (type=float)

Returns:

PyNone

áááááááááá (type=PyNone)

Class Variable Details

loc

The location of the metaball.

name

The name of the metaball.

rot

The rotation of the metaball.

size

The size of the metaball.